﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SalaryInfonew.ascx.cs"
    Inherits="Control_SalaryInfonew" %>
<%@ Register Assembly="ZLTextBox" Namespace="BaseText" TagPrefix="cc1" %>
<infolight:webdatasource id="MasterSalary" runat="server" autoapply="True" webdatasetid="WMasterSalary"
    datamember="EmployeesSalary" selectcommand="" selectalias="" cachedataset="True"
    autoapplyforinsert="False">
</infolight:webdatasource>
<fieldset title="薪资信息" style="overflow: hidden">
    <legend style="font-size: large; font-weight: bold">薪资信息</legend>
    <table style="width: 100%">
        <tr>
            <td>
                <infolight:webnavigator id="wnSalary" runat="server" bindingobject="FVSalary" oncommand="wnSalary_Command"
                    showdatastyle="FormViewStyle" width="100%" backcolor="#FFFFCC" bordercolor="#000"
                    borderstyle="solid" borderwidth="1px" statusstrip="WebStatusStrip1" enabled="False">
                    <navcontrols>
                <InfoLight:ControlItem ControlName="First" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/first.gif" MouseOverImageUrl="../image/uipics/first2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/first3.gif" />
                <InfoLight:ControlItem ControlName="Previous" ControlText="掸" ControlType="Image"
                    ControlVisible="False" ImageUrl="../image/uipics/previous.gif" MouseOverImageUrl="../image/uipics/previous2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/previous3.gif" />
                <InfoLight:ControlItem ControlName="Next" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/next.gif" MouseOverImageUrl="../image/uipics/next2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/next3.gif" />
                <InfoLight:ControlItem ControlName="Last" ControlText="ソ掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/last.gif" MouseOverImageUrl="../image/uipics/last2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/next3.gif" />
                    
                    
 <InfoLight:ControlItem ControlName="Add" ControlText="add" ControlType="Image" ControlVisible="False"
                    DisenableImageUrl="../Image/UIPics/Add3.png" ImageUrl="../Image/UIPics/Add.png"
                    MouseOverImageUrl="../Image/UIPics/Add2.png" Size="48">
                </InfoLight:ControlItem>
                 <InfoLight:ControlItem ControlName="Update" ControlText="update" ControlType="Image"
                    ControlVisible="True" DisenableImageUrl="../Image/UIPics/Edit3.png" ImageUrl="../Image/UIPics/Edit.png"
                    MouseOverImageUrl="../Image/UIPics/Edit2.png" Size="48">
                </InfoLight:ControlItem>
                
                <InfoLight:ControlItem ControlName="Delete" ControlText="埃" ControlType="Image"
                    ControlVisible="False" ImageUrl="../image/uipics/delete.gif" MouseOverImageUrl="../image/uipics/delete2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/delete3.gif" />
                <InfoLight:ControlItem ControlName="OK" ControlText="絋粄" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/ok.gif" MouseOverImageUrl="../image/uipics/ok2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/ok3.gif" />

                    
                    
               
<InfoLight:ControlItem ControlName="Cancel" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Abort3.png" ImageUrl="../Image/UIPics/Abort.png"
                    MouseOverImageUrl="../Image/UIPics/Abort2.png" Size="48">
                </InfoLight:ControlItem>
<InfoLight:ControlItem ControlName="Apply" ControlType="Image" ControlVisible="True"
                    DisenableImageUrl="../Image/UIPics/Apply3.png" ImageUrl="../Image/UIPics/Apply.png"
                    MouseOverImageUrl="../Image/UIPics/Apply2.png" Size="48">
                </InfoLight:ControlItem>
                    
                    
                    
                <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/abort.gif" MouseOverImageUrl="../image/uipics/abort2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/abort3.gif" />
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/query.gif" MouseOverImageUrl="../image/uipics/query2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/query3.gif" />
                <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/print.gif" MouseOverImageUrl="../image/uipics/print2.gif"
                    Size="25" DisenableImageUrl="../image/uipics/print3.gif" />
                <InfoLight:ControlItem ControlName="Export" ControlType="Image" ControlVisible="False"
                    DisenableImageUrl="../Image/UIPics/Export3.gif" ImageUrl="../Image/UIPics/Export.gif"
                    MouseOverImageUrl="../Image/UIPics/Export2.gif" Size="25" />
            </navcontrols>
                    <navstates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </navstates>
                </infolight:webnavigator>
            </td>
        </tr>
    </table>
    <infolight:webformview id="FVSalary" runat="server" datasourceid="MasterSalary" width="100%"
        cellpadding="4">
        <insertitemtemplate>
         <table class="tbI" cellpadding="5">
         <tr>
             <td class="label1">
                用工合同类型：
             </td>
             <td class="textbox">
                  <InfoLight:WebDropDownList runat="server" ID="WorkContractType" 
                     AutoInsertEmptyData="False" DataSourceID="wdsWorkContractType" DataTextField="ValueName" 
                     DataValueField="ValueId" DriverObject="" Filter="" FilterObject="" 
                     onlyshowselecttext="False" SelectedValue='<%# Bind("WorkContractType") %>'></InfoLight:WebDropDownList>
                    <asp:TextBox ID="EmployeeID" runat="server" Text='<%# Bind("EmployeeID")%>' Visible="false"></asp:TextBox>
             </td>
         </tr>
          <tr>
             <td class="label1">
                月薪：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="Salary" runat="server" Text='<%# Bind("Salary") %>'></asp:TextBox>
             </td>
             <td class="label2">
                美世级别：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="Mclass" runat="server" Text='<%# Bind("Mclass") %>'></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                绩效奖金上限：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="Bonus" runat="server" Text='<%# Bind("Bonus") %>'></asp:TextBox>
             </td>
             <td class="label2">
                津贴：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="Subsidy" runat="server" Text='<%# Bind("Subsidy") %>'></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                公司缴纳月福利费用：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="Welfarism" runat="server" Text='<%# Bind("Welfarism") %>'></asp:TextBox>
             </td>
           <td class="label2">
                合同编号：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="ContractID" runat="server" Text='<%# Bind("ContractID") %>'></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                薪资信息备注：
             </td>
             <td class="textbox" colspan="3">
                 <asp:TextBox ID="Remark" runat="server" Text='<%# Bind("Remark") %>'></asp:TextBox>
             </td>
         </tr>
         </table>
        </insertitemtemplate>
        <edititemtemplate>
         <table class="tbE" cellpadding="5">
         <tr>
             <td class="label1">
                用工合同类型：
             </td>
             <td class="textbox">
                  <InfoLight:WebDropDownList runat="server" ID="WorkContractType" 
                     AutoInsertEmptyData="False" DataSourceID="wdsWorkContractType" DataTextField="ValueName" 
                     DataValueField="ValueId" DriverObject="" Filter="" FilterObject="" 
                     onlyshowselecttext="False" SelectedValue='<%# Bind("WorkContractType") %>'></InfoLight:WebDropDownList>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("EmployeeID")%>' Visible="false"></asp:TextBox>
             </td>
         </tr>
          <tr>
             <td class="label1">
                 月薪(<span style="color:Red">*</span>)：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("Salary") %>'></asp:TextBox>
             </td>
             <td class="label2">
                美世级别：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("Mclass") %>'></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                绩效奖金上限：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("Bonus") %>'></asp:TextBox>
             </td>
             <td class="label2">
                津贴：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("Subsidy") %>'></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                公司缴纳月福利费用：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Welfarism") %>'></asp:TextBox>
             </td>
           <td class="label2">
                合同编号：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("ContractID") %>'></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                薪资信息备注：
             </td>
             <td class="textbox" colspan="3">
                 <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Remark") %>' TextMode="MultiLine"></asp:TextBox>
             </td>
         </tr>
         </table>
        </edititemtemplate>
        <itemtemplate>
        <table class="tbR" cellpadding="5">
         <tr>
             <td class="label1">
                用工合同类型：
             </td>
             <td class="textbox">
                  <InfoLight:WebDropDownList runat="server" ID="WorkContractType" 
                     AutoInsertEmptyData="False" DataSourceID="wdsWorkContractType" DataTextField="ValueName" 
                     DataValueField="ValueId" DriverObject="" Filter="" FilterObject="" 
                     onlyshowselecttext="True" SelectedValue='<%# Bind("WorkContractType") %>'></InfoLight:WebDropDownList>
                    <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("EmployeeID")%>' Visible="false"></asp:TextBox>
             </td>
         </tr>
          <tr>
             <td class="label1">
                月薪：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("Salary") %>' 
                     ReadOnly="True"></asp:TextBox>
             </td>
             <td class="label2">
                美世级别：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("Mclass") %>'></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                绩效奖金上限：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("Bonus") %>' 
                     ReadOnly="True"></asp:TextBox>
             </td>
             <td class="label2">
                津贴：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("Subsidy") %>'></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                公司缴纳月福利费用：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("Welfarism") %>'></asp:TextBox>
             </td>
           <td class="label2">
                合同编号：
             </td>
             <td class="textbox">
                 <asp:TextBox ID="TextBox15" runat="server" Text='<%# Bind("ContractID") %>'></asp:TextBox>
             </td>
         </tr>
         <tr>
             <td class="label1">
                薪资信息备注：
             </td>
             <td class="textbox" colspan="3">
                 <asp:TextBox ID="TextBox16" runat="server" Text='<%# Bind("Remark") %>' TextMode="MultiLine"></asp:TextBox>
             </td>
         </tr>
         </table>
        </itemtemplate>
        <fields>
            <InfoLight:FormViewField ControlID="WorkContractType" FieldName="WorkContractType" />
            <InfoLight:FormViewField ControlID="EmployeeID" FieldName="EmployeeID" />
            <InfoLight:FormViewField ControlID="Salary" FieldName="Salary" />
            <InfoLight:FormViewField ControlID="Mclass" FieldName="Mclass" />
            <InfoLight:FormViewField ControlID="Bonus" FieldName="Bonus" />
            <InfoLight:FormViewField ControlID="Subsidy" FieldName="Subsidy" />
            <InfoLight:FormViewField ControlID="Welfarism" FieldName="Welfarism" />
            <InfoLight:FormViewField ControlID="Remark" FieldName="Remark" />
            <InfoLight:FormViewField ControlID="Remark" FieldName="Remark" />
        </fields>
    </infolight:webformview>
</fieldset>
<infolight:webdatasource id="wdsWorkContractType" runat="server" selectalias="Usasdb"
    selectcommand="select Employees_LinkValue.* from Employees_LinkValue
where TypeId='WorkContractType' And ValueStatus=1">
</infolight:webdatasource>
<infolight:webvalidate id="wv" runat="server" altrowcss="" datamember="" datasourceid="MasterSalary"
    forecolor="Red" rowcss="" validatestyle="ShowDialog">
    <fields>
            <InfoLight:ValidateFieldItem CheckNull="True" FieldName="Salary"></InfoLight:ValidateFieldItem>
        </fields>
</infolight:webvalidate>
